From d074f7ebc98194fafd9218ca962d23bf50a76286 Mon Sep 17 00:00:00 2001 From: Gianni Tedesco Date: Fri, 10 Sep 2010 18:49:49 +0100 Subject: [PATCH] xl: don't leak a lot of memory in forked process in domain_create A goto statement skips over freeing data structures for no good reason. It's not a real issue since the next step is to exit() but this cleans up output of valgrind so that other leaks and errors can be spotted. Signed-off-by: Gianni Tedesco Signed-off-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index d92e288ede..3cd310e09e 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1511,7 +1511,7 @@ start: goto error_out; } ret = domid; - goto waitpid_out; + goto out; } rc = libxl_ctx_postfork(&ctx); -- 2.30.2